@extends('wx.layout.default')

@section('wx.pheader')
  @include('wx.layout.swiper')
@stop

@section('wx.pbody')

  <div class="weui-cells">
    <div class="weui-cells__title">积分记录</div>
    @foreach($points as $point)
    <div class="weui-cell">
      <div class="weui-cell__bd">
        <p>{{ $point->activity->name }}</p>
        <p class="smaller-80 grey" style="padding:5px 0 0 0;">日期：{{date('Y-m-d',$point->date)}}</p>
      </div>
      <div class="weui-cell__ft">{!! $point->present()->showamount !!}</div>
    </div>
    @endforeach
    
  </div>



@stop

@section('javascript')
  <script src="//cdn.bootcss.com/jquery-weui/1.2.1/js/swiper.min.js"></script>
  <script src="//cdn.bootcss.com/jqueryui/1.12.1/jquery-ui.min.js"></script>
  <script type="text/javascript">
    $(function() {

      $('.swiper-container').swiper({
        loop: true,
        autoplay: 5000,
        pagination: '.swiper-pagination',
        paginationClickable: true
      });

    });
  </script>
@stop